import request from "@/utils/request";

// 查询课文列表
export function listText(data) {
    return request({
        url: "/recitation_admin/text/list",
        method: "post",
        data: data
    });
}

// 查询课文详细
export function getText(textId) {
    return request({
        url: "/recitation_admin/text/" + textId,
        method: "get"
    });
}

// 新增课文
export function addText(data) {
    return request({
        url: "/recitation_admin/text/add",
        method: "post",
        data: data
    });
}

// 修改课文
export function updateText(data) {
    return request({
        url: "/recitation_admin/text",
        method: "put",
        data: data
    });
}

// 删除课文
export function delText(textId) {
    return request({
        url: "/recitation_admin/text/" + textId,
        method: "delete"
    });
}
//题材列表
export function getSubjectList() {
    return request({
        url: "/recitation_admin/subject/list",
        method: "get"
    });
}
